CC=gcc
CFLAGS= -g 
LIBS= -lssl -ltspi

all:mkcert aikpublish aikrespond xenquote

%.o: %.c $(DEPS)
	$(CC) -c -o $@ $< $(CFLAGS) 

mkcert: mkcert.o
	gcc -o $@ $^ $(CFLAGS) $(LIBS)

aikrespond: aikrespond.o	
	gcc -o $@ $^ $(CFLAGS) $(LIBS) -lcrypto 

aikpublish: aikpublish.o	
	gcc -o $@ $^ $(CFLAGS) $(LIBS)

xenquote: xenquote.o	
	gcc -o $@ $^ $(CFLAGS) $(LIBS)

clean:
	rm -rf *.o mkcert aikpublish aikchallange 

